package com.yunban.route;


import com.yunban.dto.UpdateDynamicResp;
import com.yunban.service.UpdateDynamicService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Tag(name = "更新动态管理")
@RequestMapping("/update-dynamics-api")
public class UpdateDynamicController {

    @Resource
    private UpdateDynamicService updateDynamicService;

    @GetMapping("/list")
    @Operation(summary = "更新动态列表")
    public List<UpdateDynamicResp> list() {
        return updateDynamicService.updateDynamicList();
    }
}
